home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 208 / MF_UK_208_1.iso / pc / Files / Scenes_OLDE / banner.dir / 00007_Go to URL.ls < prev    next >
Encoding:
Text File  |  2008-05-20  |  1.6 KB  |  28 lines

  1. property myURL
  2.  
  3. on getBehaviorDescription me
  4.   return "GO TO URL" & RETURN & RETURN & "Drop this behavior onto a Sprite, the Stage or into the Script Channel of the Score to load the designated HTML Page." & RETURN & RETURN & "If you drop it onto a graphic member, the 'gotoNetPage' command is sent when the user clicks on the sprite (on mouseUp)." & RETURN & RETURN & "If you drop it onto the Stage or the Script Channel of the Score, it will be sent when the playback head leaves the frame (on exitFrame)." & RETURN & RETURN & "When called from a Shockwave movie, this behavior replaces the current page displayed in the web browser. " & "When called from a projector or in authoring mode, it opens a browser to display the requested page." & RETURN & RETURN & "PARAMETERS:" & RETURN & "* Destination URL - Enter the complete URL of the destination page. " & "Include http://"
  5. end
  6.  
  7. on getBehaviorTooltip me
  8.   return "Use with graphic members or as a frame behavior. " & "When called from a Shockwave movie, this behavior replaces the current page displayed in the web browser. " & "When called from a projector or in authoring mode, it opens a browser to display the requested page. " & "Acts on mouseUp or on exitFrame, depending on whether you drag it to a sprite or to the Stage."
  9. end
  10.  
  11. on mouseUp me
  12.   gotoNetPage(myURL)
  13. end
  14.  
  15. on exitFrame me
  16.   if the currentSpriteNum = 0 then
  17.     gotoNetPage(myURL)
  18.   end if
  19. end
  20.  
  21. on isOKToAttach me, aSpriteType, aSpriteNum
  22.   return 1
  23. end
  24.  
  25. on getPropertyDescriptionList
  26.   return [#myURL: [#comment: "Destination URL", #format: #string, #default: "http://www.macromedia.com "]]
  27. end
  28.